﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using static ZuesControls.Controls.ZSListBox;

namespace ZuesControls.Models
{
   public class ListItemModel:BindableBase
    {
        private ItemType showType;
        public ItemType ShowType
        {
            get { return showType; }
            set
            {
                SetProperty(ref showType, value);
            }
        }


        private bool _isSelected;
        public bool IsSelected
        {
            get => _isSelected;
            set
            {
                if (_isSelected == value) return;
                SetProperty(ref _isSelected, value);
            }
        }

        /// <summary>
        /// G代码内容
        /// </summary>
        private string _gcode;
        public string Gcode
        {
            get { return _gcode; }
            set
            {
                SetProperty(ref _gcode, value);
            }
        }

        private bool isSelect;
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool IsSelect
        {
            get { return isSelect; }
            set
            {
                this.SetProperty(ref isSelect, value);
            }
        }
        private UIElement _content;
        public UIElement Content
        {
            get { return _content; }
            set
            {
                SetProperty(ref _content, value);
            }
        }

        private string _header;
        public string Header
        {
            get { return _header; }
            set
            {
                SetProperty(ref _header, value);
            }
        }

    }
}
